.model {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 350px;
    background: #fff;
    transition: all .5s;
    box-shadow: 0 1px 3px rgba(255, 255, 255, .8);
}

.model-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: none;
    transition: all .15s ease-in-out;
    background-color: rgba(0, 0, 0, .8);
}

.model .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 35px;
    background: var(--main);
    padding: 0 10px;
    color: #fff;
}

.model .title i {
    font-size: 1.2rem;
    cursor: pointer;
}

.model .title i:hover {
    color: #ee0a24;
}

.model .title h1 {
    font-size: 16px;
    font-weight: normal;
    color: #fff;
}

.model form {
    width: 350px;
    height: 100%;
}

.model form .box {
    position: relative;
    width: 320px;
    height: 30px;
    color: #555;
    font-size: 15px;
    margin: 19px;
}

.model form .box input[type="text"],
.model form .box input[type="password"] {
    height: 100%;
    width: 99%;
    border: none;
    outline: none;
    font-size: 15px;
    border-bottom: 2px solid #ccc;
}

.model form .box input[type="file"]{

}

.model form .box .info {
    position: absolute;
    top: 0px;
    left: 0px;
    padding: 1px;
    transition: all .3s;
}

.model form .box input[type="text"]:focus ~ .info,
.model form .box input[type="text"]:valid ~ .info,
.model form .box input[type="password"]:focus ~ .info,
.model form .box input[type="password"]:valid ~ .info {
    transform: translateY(-18px);
    font-size: 13px;
}

.model form .box .underline {
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0px;
    left: 0px;
}

.model form .box .underline::before {
    position: absolute;
    content: "";
    height: 100%;
    bottom: -4px;
    width: 100%;
    background: var(--main);
    transform: scaleX(0);
    transition: all .2s;
}

.model form .box input[type="text"]:focus ~ .underline::before,
.model form .box input[type="text"]:valid ~ .underline::before,
.model form .box input[type="password"]:focus ~ .underline::before,
.model form .box input[type="password"]:valid ~ .underline::before{
    transform: scaleX(1);
}

.model form .me-add-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.model form .me-add-option input {
    outline: none;
    border: none;
    background: var(--main);
    color: #fff;
    cursor: pointer;
}

.model form .me-add-option label {
    width: 70px;
    height: 2rem;
    background: var(--main);
    border-radius: .2rem;
    text-align: center;
    margin: 0 19px;
    line-height: 2rem;
    color: #fff;
    cursor: pointer;
}